package Test;

import java.util.ArrayList;
import org.junit.Test;
import DBLayer.DBTrainingProgram;
import ModelLayer.TrainingProgram;

public class TestDBTrainingProgram
{
	DBTrainingProgram dbtp = new DBTrainingProgram();

	@Test
	public void testGetAllTrainingProgram() {
		ArrayList<TrainingProgram> tplist = dbtp.getAllTrainingProgram(false);
	    System.out.println("\nTrainingProgram size : " + tplist.size() + "\n");
	}

	@Test
	public void testSearchTrainingProgramID() {
		int id =1;
		TrainingProgram tp = dbtp.searchTrainingProgramID(id, false);
		System.out.println("TrainingProgramID    : " + tp.getTrainingProgramID());
		System.out.println("PmDate               : " + tp.getPmDate());
		System.out.println("Name                 : " + tp.getName());
		System.out.println("CreatorName          : " + tp.getCreatorName());
		System.out.println("SupervisorID         : " + tp.getSupervisor().getSupervisorID());
		System.out.println("------------------------------------------");
	}
/*
	@Test
	public void testSearchTrainingProgramPmDate() {
		fail("Not yet implemented");
	}

	@Test
	public void testSearchTrainingProgramName() {
		fail("Not yet implemented");
	}

	@Test
	public void testSearchTrainingProgramCreatorName() {
		fail("Not yet implemented");
	}

	@Test
	public void testSearchTrainingProgramSupervisorID() {
		fail("Not yet implemented");
	}

	@Test
	public void testInsertTrainingProgram() {
		fail("Not yet implemented");
	}

	@Test
	public void testUpdateTrainingProgram() {
		fail("Not yet implemented");
	}

	@Test
	public void testDelete() {
		fail("Not yet implemented");
	}
*/
}
